package main

import (
	"fmt"
	"reflect"
)

func main() {
	func(i interface{}) int {
		if reflect.TypeOf(i).Kind() == reflect.Ptr {
			fmt.Println("i:", reflect.ValueOf(i).Elem().Field(0).String())
		}
		return 0
	}(&struct {
		Name string
	}{
		Name: "lvpj",
	})
}
